package cn.ztuo.bitrade.controller.system;

import cn.ztuo.bitrade.controller.common.BaseAdminController;
import cn.ztuo.bitrade.core.Encrypt;
import cn.ztuo.bitrade.entity.Admin;
import cn.ztuo.bitrade.service.MemberTransactionService;
import cn.ztuo.bitrade.util.MessageResult;
import cn.ztuo.bitrade.vo.RecordVO;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Slf4j
@Controller
@RequestMapping("/system/record")
public class RecordController extends BaseAdminController {

    @Autowired
    private MemberTransactionService transactionService;

    @RequestMapping(value = "getInfo")
    @ResponseBody

    public MessageResult getInfo() {
        RecordVO record = transactionService.GetRecode();
        return success(record);
        //return error("");
    }
}
